<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { addConfigViews } from "./api/about";
export default {
  name: "app",
  components: {},
  mounted() {
    if (window.performance.navigation.type == 1) {
      console.log("页面被刷新");
    } else {
      // 调用增加访问量
      addConfigViews().then((res) => {});
    }
  },
};
</script>

<style>
/* 要修改这个的样式 得把引入的iconfont.css包放在自己的css文件上面 */
.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

li {
  list-style: none;
}

::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 7px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}
::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  background: #cfcbcb;
}
::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  border-radius: 10px;
  background: #ededed;
}

* {
  padding: 0;
  margin: 0;
}
</style>
